package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.TravelCollect;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TravelCollectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TravelCollect record);

    TravelCollect selectByPrimaryKey(Integer id);

    List<TravelCollect> selectAll();

    int updateByPrimaryKey(TravelCollect record);

    TravelCollect selectByUserIdAndTreaveId(@Param("userId") Long userId, @Param("trevelId") Long trevelId);
}